package bot;

import com.google.appengine.api.xmpp.JID;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class UserInfo {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
    
    @Persistent
    private String email;

    @Persistent
    private String keyword;

    @Persistent
    private String text;		// name part of email address
    
    public UserInfo(String email, String keyword, String text) {
        this.email = email;
        this.keyword = keyword;
        this.text = text;
    }

    // Accessors for the fields. JDO doesn't use these, but your application does.

    public String getEmail() {
        return email;
    } 

    public String getKeyword() {
        return keyword;
    } 

    public String getText() {
        return text;
    }
    
    public void setText(String text) {
    	this.text = text;
    }
}